angular.module('todoApp').directive('todoDialog', function() {
  return {
    restrict: 'E',
    templateUrl: './directives/todoDialog.html',
    transclude: true,
    scope: {
      visible: '=',
      confirm: '&onConfirm',
      cancel: '&onCancel'
    }
  };
});